package com.xiaoming.dao;

import com.xiaoming.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface UserRepository extends JpaRepository<User, Integer> {
    List<User> findByEmail(String email);

    List<User> findByEmailAndPassword(String email,String password);
}
